package com.ruoyi.car.mapstruct;

import com.ruoyi.car.controller.admin.company.vo.CarCompanyAddReq;
import com.ruoyi.car.controller.admin.company.vo.CarCompanyEditReq;
import com.ruoyi.car.controller.admin.company.vo.CarCompanyResp;
import com.ruoyi.car.entity.CarCompany;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/6/6 15:13
 * @Version 1.0
 */
@Mapper
public interface CarCompanyConvert {
    CarCompanyConvert INSTANCE= Mappers.getMapper(CarCompanyConvert.class);

    List<CarCompanyResp> convert(List<CarCompany> list);

    CarCompany  convert(CarCompanyAddReq req);

    CarCompanyResp convert(CarCompany bean);

    CarCompany convert(CarCompanyEditReq req);
}
